package com.wp.backup.constants;

import java.io.File;

/**
 * @author wp
 * @create 2019-03-06 11:57
 */
public interface BackupConstants {
    /**
     * 备份目录
     */
    public static final String BACKUP_FOLDER = System.getProperty("user.dir") + File.separator + "_backup" + File.separator;
    /**
     * 还原目录，默认就是备份目录
     */
    public static final String RESTORE_FOLDER = BACKUP_FOLDER;
    /**
     * 日期格式
     */
    public static final String DATE_FORMAT = "yyyy-MM-dd_HHmmss";
    /**
     * SQL拓展名
     */
    public static final String SQL_EXT = ".sql";
    /**
     * 默认备份文件名
     */
    public static final String BACKUP_FILE_NAME = "scmall_backup" + SQL_EXT;
    /**
     * 初始化版本目录名称
     */
    public static final String DEFAULT_BACKUP_NAME = "backup";
}
